package com.zj.study.strategy;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 赵赳
 * @since 2022/7/21 14:00
 */
@RestController
public class TestStrategyController {

  //private final UnitePayment unitePayment;
  //
  //public TestStrategyController(UnitePayment unitePayment) {
  //  this.unitePayment = unitePayment;
  //}

  /**
   * test
   */
  @PostMapping("/test01")
  public void test() {
    var paymentStrategy = DefaultUnitePayment01.getPaymentStrategy("2");
    paymentStrategy.pay();
  }


}
